<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
		</style>
	</head>
	<body>	
	<h6><kbd>&nbsp;{$role['title']==null?'添加':'修改'}用户组&nbsp;</kbd></h6>
			<div class="alert alert-info">
   正在【{$role['title']==null?'添加':'修改'}{$role.title}】用户组的信息
	</div>
		<form action="{:U(MODULE_NAME.'/Role/createHandle')}" method="post">
			<input type="hidden" value="{$role.id}" name="rid">
			<label for="">用户组名称</label>
			<input type="text" value="{$role.title}" name="title" class="form-control" placeholder="请输入组名称" required />
					<br/>
			<div class="alert alert-info">
				<ul class="list-inline">
   			<foreach name="rules" item="r">
   				<li>
   					<eq name="r.checked" value="checked">
   					  <input  value="{$r.id}"   name="ck[]" checked type="checkBox"  />{$r.title}
   					<else />
   					   	<input value="{$r.id}"   name="ck[]" type="checkBox"  />{$r.title}
   					</eq>
   				
   				</li>
   			</foreach>
   			</ul>
   			
	</div>
			
			
						<br/>
			<input type="submit" class="btn btn-success" value="保 存" />
			<a href="{:U(MODULE_NAME.'/Role/index')}" class="btn btn-danger ">返 回</a>
			
			
		</form>

	</body>		

</html>
